package cn.tedu.service;

import cn.tedu.pojo.Car;
import org.springframework.stereotype.Service;

//实现了接口以后,要重写接口里的抽象方法
@Service //和@Component注解作用一样,都是为了让spring进行ioc
public class CarServiceImpl implements CarService {
    @Override
    public Car get() {
        Car c = new Car();
        c.setName("保时捷");
        c.setColor("红色");
        c.setPrice(641000.9);
        return c;
    }
}
